package com.xingkeduo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xingkeduo.controller.base.InitController;
import com.xingkeduo.service.TestService;
import com.xingkeduo.service.api.common.CommonService;
import com.xingkeduo.util.Constant;

/**
 * 
* @ClassName: TestController
* @Description: 测试
* @author lixin
* @date Apr 18, 2019 2:49:03 PM
*
 */
@RestController
@RequestMapping(Constant.API_URL_PREFIX + "/act/t")
public class TestController extends InitController{

	@Autowired
	private TestService testService;
	@Autowired
	private CommonService commonService;

	@RequestMapping("test")
	public void hello(ServerHttpRequest request) {
		
		System.out.println(this.getOperator(request));
	}
	@RequestMapping("test2")
	public void hello2() {
		//test19052553895893
		System.out.println(commonService.getOnlyRandomNo("only_key", "test"));
	}

}
